#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>

int main(int argc, char* argv[])
{
	char buf[512];
	int fileDesc = 0, i = 0;
	
	fileDesc = open(argv[1], O_RDWR);
	read(fileDesc, buf, 510);
	
	buf[510] = 0x55;
	buf[511] = 0xAA;
	
	lseek(fileDesc, 0, SEEK_SET);
	write(fileDesc, buf, 512);
	
	close(fileDesc);
	
	return 0;
}
